package org.iot.iotserver.netty.entity;

import java.util.HashMap;
import java.util.Map;

/**
 * 51 单片机客户端信息
 */
public abstract class ADevice {

    /**
     * 客户端 ID
     */
    protected String id;

    /**
     * 客户端状态
     */
    protected int status;

    /**
     * 设备数据
     */
    protected Map<String, String> data = new HashMap<>();

    protected long lastAccessTime;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
    }

    public Map<String, String> getData() {
        return data;
    }

    public void setData(Map<String, String> data) {
        this.data = data;
    }

    public long getLastAccessTime() {
        return lastAccessTime;
    }

    public void setLastAccessTime(long lastAccessTime) {
        this.lastAccessTime = lastAccessTime;
    }
}
